import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import siteInfo from './siteInfo'
import Http from './utils/Http'
import Api from './utils/apiLoader'
import BaseView from './components/BaseView.vue'
import router from "./router/index"

const app = createApp(App)
//全局挂载
app.config.globalProperties.$site = siteInfo // 网站信息
app.config.globalProperties.$api = Api // 接口 路径
app.config.globalProperties.$http = new Http({baseURL:siteInfo.apiroot})
app.use(ElementPlus)
app.use(router)
//全局组件注册组件
app.component('BaseView',BaseView)
app.mount('#app')
